package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.ProcessCraftDispatchFlow;
import com.qijian.maindata.domain.query.ProcessCraftDispatchFlowQuery;
import com.qijian.maindata.domain.vo.ProcessCraftDispatchFlowVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 工艺派工-流程主(工艺)Mapper接口
 *
 * @author qijian
 * @date 2024-09-26
 */
public interface ProcessCraftDispatchFlowMapper extends BaseMapper<ProcessCraftDispatchFlow> {

    @Select("select count(0) from main_process_craft_dispatch_flow WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    Page<ProcessCraftDispatchFlowVo> selectPageVo(Page<ProcessCraftDispatchFlowVo> page, @Param(Constants.WRAPPER) QueryWrapper<ProcessCraftDispatchFlowQuery> queryWrapper);


    ProcessCraftDispatchFlowVo getVo(@Param("id") Long id);

    ProcessCraftDispatchFlowVo getFlowVo(@Param("id") Long flowId);

    List<ProcessCraftDispatchFlowVo> listVo(@Param(Constants.WRAPPER) QueryWrapper<ProcessCraftDispatchFlowQuery> queryWrapper);



}
